package com.kdx.wallet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kdx.wallet.entity.Prod;
import com.kdx.wallet.entity.Wallet;

public interface WalletService extends IService<Wallet> {
    /**
     * 根据用户id查余额
     */
    Wallet getAmount(Integer userId);

    /**
     * 用户充值
     */
    boolean recharge(Integer userId, Double amount);

    /**
     * 用户提现
     */
    boolean withdraw(Integer userId, Double amount);

}
